/**
 * File:   modbus_client_channel_view_model.h
 * Author: AWTK Develop Team
 * Brief:  modbus_client_channel_view_model
 *
 * Copyright (c) 2023 - 2024  Guangzhou ZHIYUAN Electronics Co.,Ltd.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * License file for more details.
 *
 */

/**
 * History:
 * ================================================================
 * 2024-3-26 Li XianJing <xianjimli@hotmail.com> created
 *
 */

#ifndef TK_MODBUS_CLIENT_CHANNEL_MODEL_CHANNEL_H
#define TK_MODBUS_CLIENT_CHANNEL_MODEL_CHANNEL_H

#include "tkc/object.h"
#include "conf_io/conf_node.h"
#include "modbus_prop.h"
#include "modbus_client_channel.h"

BEGIN_C_DECLS

/**
 * @class modbus_client_channel_view_model_t
 * @annotation ["fake"]
 * modbus_client_channel_view_model
 * 
*/

/**
 * @method modbus_client_channel_view_model_create
 * 创建modbus_client_channel_view_model对象
 * @param {navigator_request_t*} req
 * 
 * @return {view_model_t*} 返回view_model对象
 */
view_model_t* modbus_client_channel_view_model_create(navigator_request_t* req);

#define MODBUS_CLIENT_CHANNEL_MODEL_PROP_URL "url"
#define MODBUS_CLIENT_CHANNEL_MODEL_PROP_CONNECTED "connected"
#define MODBUS_CLIENT_CHANNEL_MODEL_CMD_UPDATE "update"

END_C_DECLS

#endif /*TK_MODBUS_CLIENT_CHANNEL_MODEL_CHANNEL_H*/

